<template>
  <div class="detail">{{ id }}</div>
</template>

<script lang="ts" setup>
  //获取pramas.id
  const route = useRoute()
  const { id } = route.params

  definePageMeta({
    //匿名中间件 命名中间件 全局中间件
    middleware: ['detail']
  })
</script>

<style scoped></style>
